package cc.realxyq.springboot.quickstart.controller;

import cc.realxyq.springboot.quickstart.bean.Person;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 * @author Hankewei
 * @version 0.1.0
 * @date 2021/6/10 15:28
 * @since 0.1.0 
 */
@RestController
public class RealxyqDemoController {
    
    /**
     * @Description:
     * @return: java.lang.String
     * @Author: （填写你自己的用户名）
     * @Date: 2021/6/10 17:00
     */
    @RequestMapping("/")
    public String hello(){
        Person person = new Person();
        
        return "hello world!"+ person;
    }




  
    /**
     *
     * @author Hankewei
     * @date 2021/6/10 16:02
     * @return String
     * @since 0.1.0 
     */
    @GetMapping("/echo/{inputString}")
    public String echo(@PathVariable("inputString") String in){
        return in;
    }
}
